package com.nineclock.api.approve;

import com.nineclock.approve.dto.ApproveDefinitionResultDto;
import com.nineclock.approve.dto.ApproveDefinitionSaveDto;
import com.nineclock.approve.dto.ApproveGroupDefinitionDto;
import com.nineclock.common.entity.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api(value = "审批流程管理", tags = "审批中心")
public interface ApproveDefinitionControllerApi {

    @ApiOperation(value = "流程定义: 获取序列")
    public Result<String> seq();

    @ApiOperation(value = "流程定义: 查询列表")
    public Result<List<ApproveGroupDefinitionDto>> queryApproveDefintion();

    @ApiOperation(value = "流程定义: 新增/修改流程")
    public Result saveApproveDefintion(ApproveDefinitionSaveDto definitionSaveDto);

    @ApiOperation(value = "流程定义: 根据ID查询流程")
    public Result<ApproveDefinitionResultDto> queryDefinitionById(String id);
}
